import request from '@/utils/request'

// 查询退宿申请列表
export function listCheckoutApplication(query) {
  return request({
    url: '/system/checkoutApplication/list',
    method: 'get',
    params: query
  })
}

// 查询退宿申请详细
export function getCheckoutApplication(id) {
  return request({
    url: '/system/checkoutApplication/' + id,
    method: 'get'
  })
}

// 新增退宿申请
export function addCheckoutApplication(data) {
  return request({
    url: '/system/checkoutApplication',
    method: 'post',
    data: data
  })
}

// 修改退宿申请
export function updateCheckoutApplication(data) {
  return request({
    url: '/system/checkoutApplication',
    method: 'put',
    data: data
  })
}

// 删除退宿申请
export function delCheckoutApplication(id) {
  return request({
    url: '/system/checkoutApplication/' + id,
    method: 'delete'
  })
}
